home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / media-list-menu.xml < prev    next >
Extensible Markup Language  |  2010-01-15  |  2KB  |  73 lines

  1. <?xml version="1.0"?>
  2. <!-- *****************************************************************************
  3.     *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.     ****************************************************************************** -->
  5. <!DOCTYPE bindings SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  6.  
  7. <bindings xmlns="http://www.mozilla.org/xbl"
  8.     xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.     xmlns:html="http://www.w3.org/1999/xhtml"
  10.     xmlns:xbl="http://www.mozilla.org/xbl">
  11.  
  12.     <binding id="MediaListMenu" extends="widgets.xml#widget">
  13.  
  14.         <xbl:content
  15.             xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  16.             <menulist anonid="xMenu" datasources="rdf:null"
  17.                 ref="urn:root" flex="1" hidden="true">
  18.                 <template>
  19.                     <rule>
  20.                         <conditions>
  21.                             <content uri="?root" />
  22.                             <member container="?root" child="?list" />
  23.                             <triple subject="?list"
  24.                                 predicate="http://downloadhelper.net/1.0#name"
  25.                                 object="?listname" />
  26.                         </conditions>
  27.                         <action>
  28.                             <menupopup>
  29.                                 <menuitem uri="?list" label="?listname"
  30.                                     value="?list" />
  31.                             </menupopup>
  32.                         </action>
  33.                     </rule>
  34.                 </template>
  35.             </menulist>
  36.             <children style="display: none;" />
  37.         </xbl:content>
  38.  
  39.         <implementation>
  40.  
  41.             <constructor>
  42.                 <![CDATA[
  43. this.util.setDatasource(this.xMenu,this.mediaListMgr.getDataSource());
  44. this.fireEvent("MediaListChange");
  45.                 ]]>
  46.             </constructor>
  47.  
  48.             <method name="getList">
  49.                 <body>
  50.                 <![CDATA[
  51. return this.xMenu.value;
  52.                 ]]>
  53.                 </body>
  54.             </method>
  55.             
  56.         </implementation>
  57.  
  58.         <handlers>
  59.  
  60.             <handler event="command">
  61.                 <![CDATA[
  62. this.fireEvent("MediaListChange");
  63.                 ]]>
  64.             </handler>
  65.  
  66.         </handlers>
  67.  
  68.  
  69.  
  70.     </binding>
  71.  
  72. </bindings>
  73.